package com.css.fxfzypg.modules.model.repository;

import com.css.fxfzypg.modules.model.entity.ResettlementPersonnel;
import com.css.fxfzypg.modules.model.vo.ResettlementPersonnelVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author DBJ
 */
public interface ResettlementPersonnelRepository {
    Map<String, Object> findPage(ResettlementPersonnelVO vo, int curPage, int pageSize);

    ResettlementPersonnel getModelById(String id);

    ResettlementPersonnel getDefaultModel();
    List<ResettlementPersonnel> getByDivision(String province, String city, int isNa);

    void save(ResettlementPersonnel resettlementPersonnel);

    void update(ResettlementPersonnel resettlementPersonnel);

    void delete(String userId, Date date, String id);

    Integer countByProvince(String province);

    Integer countByYearPrefixLike(String taskYear, String currProvinceId);
}
